<?php
class Vol extends Model{
	protected $table_name = 'vol';
	
	public function test(){
		echo 'Vol model test!<br/>';
	}
	
	public function add($title,$item='',$intro='',$tis='',$time=0,$tags='',$uid=0,$user_name=''){
		// $title = trim($title);
		// $re = $this->find(array('title'=>$title),'id');
		// if(!empty($re['id'])) {;}//重复标题, 要处理/提示不?
		return $this->insert(array('title'=>$title,'item'=>$item,'intro'=>$intro,'tis'=>$tis,
					'cr_time'=>$time,'tags'=>$tags,'user_id'=>$uid,'user_name'=>$user_name));
	}
	
	
}
?>